import request from '@/utils/request'

// 查询列表
export function getClarify(query) {
    return request({
        url: '/blwy/clear/rule/list',
        method: 'get',
        params: query
    })
}

//新增账户
export function addClarify(data) {
    return request({
        url: '/blwy/clear/rule/save',
        method: 'post',
        data: data
    })
}

// 删除账户
export function deleteClarify(data) {
    return request({
        url: '/blwy/clear/rule/delete?id='+data,
        method: 'delete',
    })
}
//获取所有清分账户下拉框
export function getClarifys(data) {
    return request({
        url: '/blwy/clear/account/getAll',
        method: 'get',
    })
}

// 编辑查询详情
export function getRuleDetail(data) {
    return request({
        url: '/blwy/clear/rule/getRuleDetail?id='+data,
        method: 'get',
    })
}

//编辑保存清分规则
export function editRule(data) {
    return request({
        url: '/blwy/clear/rule/edit',
        method: 'put',
        data:data
    })
}

